package com.goktech.olala.core.service;

import com.github.pagehelper.PageInfo;
import com.goktech.olala.server.pojo.comment.Comment;

import java.util.List;

/**
 * @author wusq
 * 评论service层 接口
 */
public interface ICommentService {

    /**
     * 查询所有评论
     * @param pageIndex
     * @param pageSize
     * @param comment
     * @return
     * @throws Exception
     */
    PageInfo<Comment> queryAllComment(int pageIndex, int pageSize, Comment comment) throws Exception;

    /**
     * 删除对应的评论
     * @param commentId
     * @return
     * @throws Exception
     */
    int removeCommentById(Long commentId) throws Exception;

    /**
     * 查询意见反馈
     * @param pageIndex
     * @param pageSize
     * @param comment
     * @return
     * @throws Exception
     */
    PageInfo<Comment> queryAdvices(int pageIndex, int pageSize, Comment comment) throws Exception;

    /**
     * 查询详情
     * @param customerId
     * @return
     * @throws Exception
     */
    List<Comment> selectDetailAndCommentById(String customerId) throws Exception;
}
